﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Constructor
{
    public partial class Palette : UserControl
    {
        public Palette()
        {
            InitializeComponent();
        }
        public void Init()
        {
            flowLayoutPanel1.Controls.Clear();
            foreach (Frame f in External.frames)
            {
                if (f.Type == CommonLib.FrameType.Prototype && f.Name!="Поле" && f.Name!="Клетка" && f.ContainsSubframe("Клетка"))
                    flowLayoutPanel1.Controls.Add(new PaletteItem(f));
            }
        }
    }
}
